package com.lly.bigdata.bgayx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lly.bigdata.bgayx.entity.SysOrg;
import com.lly.bigdata.bgayx.entity.SysUser;
import com.lly.bigdata.bgayx.vo.Result;
import com.lly.bigdata.bgayx.vo.SearchModel;
import com.lly.bigdata.bgayx.vo.ZTreeBean;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 组织机构 服务类
 * </p>
 *
 * @author lly
 * @since 2020-10-21
 */
public interface ISysOrgService extends IService<SysOrg> {

    Result queryOrgTree(SearchModel searchModel);

    /**
     * @return java.util.List<ZTreeBean>
     * @Author lly
     * @Description 组织结构树
     * @Date 2021/8/3 15:45
     * @Param []
     **/
    List<ZTreeBean> getOrgTree();

    @Transactional(readOnly = false)
    Result addOrUpdateOrg(SysOrg sysOrg, SysUser sysUser);

    Result delOrg(String id);
}
